home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK1.toast / Development Kits (Disc 1) / Interfaces & Libraries / Interfaces / CIncludes / ImageCompression.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-01  |  49.7 KB  |  1,129 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        ImageCompression.h
  3.  
  4.      Contains:    QuickTime interfaces
  5.  
  6.      Version:    Technology:    Technology:    QuickTime 2.5
  7.                  Package:    Universal Interfaces 2.1.3
  8.  
  9.      Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10.  
  11.      Bugs?:        If you find a problem with this file, send the file and version
  12.                  information (from above) and the problem description to:
  13.  
  14.                      Internet:    apple.bugs@applelink.apple.com
  15.                      AppleLink:    APPLE.BUGS
  16.  
  17. */
  18. #ifndef __IMAGECOMPRESSION__
  19. #define __IMAGECOMPRESSION__
  20.  
  21. #ifndef __TYPES__
  22. #include <Types.h>
  23. #endif
  24. #ifndef __QUICKDRAW__
  25. #include <Quickdraw.h>
  26. #endif
  27. #ifndef __QDOFFSCREEN__
  28. #include <QDOffscreen.h>
  29. #endif
  30. #ifndef __COMPONENTS__
  31. #include <Components.h>
  32. #endif
  33. /* end FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE*/
  34. #ifndef __WINDOWS__
  35. #include <Windows.h>
  36. #endif
  37. #ifndef __STANDARDFILE__
  38. #include <StandardFile.h>
  39. #endif
  40.  
  41. #ifdef __cplusplus
  42. extern "C" {
  43. #endif
  44.  
  45. #if PRAGMA_IMPORT_SUPPORTED
  46. #pragma import on
  47. #endif
  48.  
  49. #if PRAGMA_ALIGN_SUPPORTED
  50. #pragma options align=mac68k
  51. #endif
  52.  
  53. struct MatrixRecord {
  54.     Fixed                             matrix[3][3];
  55. };
  56. typedef struct MatrixRecord MatrixRecord;
  57.  
  58. typedef MatrixRecord *MatrixRecordPtr;
  59. struct FixedPoint {
  60.     Fixed                             x;
  61.     Fixed                             y;
  62. };
  63. typedef struct FixedPoint FixedPoint;
  64.  
  65. struct FixedRect {
  66.     Fixed                             left;
  67.     Fixed                             top;
  68.     Fixed                             right;
  69.     Fixed                             bottom;
  70. };
  71. typedef struct FixedRect FixedRect;
  72.  
  73. /* These are the bits that are set in the Component flags, and also in the codecInfo struct. */
  74.  
  75. enum {
  76.     codecInfoDoes1                = (1L << 0),
  77.     codecInfoDoes2                = (1L << 1),
  78.     codecInfoDoes4                = (1L << 2),
  79.     codecInfoDoes8                = (1L << 3),
  80.     codecInfoDoes16                = (1L << 4),
  81.     codecInfoDoes32                = (1L << 5),
  82.     codecInfoDoesDither            = (1L << 6),
  83.     codecInfoDoesStretch        = (1L << 7),
  84.     codecInfoDoesShrink            = (1L << 8),
  85.     codecInfoDoesMask            = (1L << 9),
  86.     codecInfoDoesTemporal        = (1L << 10),
  87.     codecInfoDoesDouble            = (1L << 11),
  88.     codecInfoDoesQuad            = (1L << 12),
  89.     codecInfoDoesHalf            = (1L << 13),
  90.     codecInfoDoesQuarter        = (1L << 14),
  91.     codecInfoDoesRotate            = (1L << 15),
  92.     codecInfoDoesHorizFlip        = (1L << 16),
  93.     codecInfoDoesVertFlip        = (1L << 17),
  94.     codecInfoDoesSkew            = (1L << 18),
  95.     codecInfoDoesBlend            = (1L << 19),
  96.     codecInfoDoesWarp            = (1L << 20),
  97.     codecInfoDoesRecompress        = (1L << 21),
  98.     codecInfoDoesSpool            = (1L << 22),
  99.     codecInfoDoesRateConstrain    = (1L << 23)
  100. };
  101.  
  102.  
  103. enum {
  104.     codecInfoDepth1                = (1L << 0),
  105.     codecInfoDepth2                = (1L << 1),
  106.     codecInfoDepth4                = (1L << 2),
  107.     codecInfoDepth8                = (1L << 3),
  108.     codecInfoDepth16            = (1L << 4),
  109.     codecInfoDepth32            = (1L << 5),
  110.     codecInfoDepth24            = (1L << 6),
  111.     codecInfoDepth33            = (1L << 7),
  112.     codecInfoDepth34            = (1L << 8),
  113.     codecInfoDepth36            = (1L << 9),
  114.     codecInfoDepth40            = (1L << 10),
  115.     codecInfoStoresClut            = (1L << 11),
  116.     codecInfoDoesLossless        = (1L << 12),
  117.     codecInfoSequenceSensitive    = (1L << 13)
  118. };
  119.  
  120.  
  121. enum {
  122.     codecFlagUseImageBuffer        = (1L << 0),
  123.     codecFlagUseScreenBuffer    = (1L << 1),
  124.     codecFlagUpdatePrevious        = (1L << 2),
  125.     codecFlagNoScreenUpdate        = (1L << 3),
  126.     codecFlagWasCompressed        = (1L << 4),
  127.     codecFlagDontOffscreen        = (1L << 5),
  128.     codecFlagUpdatePreviousComp    = (1L << 6),
  129.     codecFlagForceKeyFrame        = (1L << 7),
  130.     codecFlagOnlyScreenUpdate    = (1L << 8),
  131.     codecFlagLiveGrab            = (1L << 9),
  132.     codecFlagDontUseNewImageBuffer = (1L << 10),
  133.     codecFlagInterlaceUpdate    = (1L << 11),
  134.     codecFlagCatchUpDiff        = (1L << 12),
  135.     codecFlagUsedNewImageBuffer    = (1L << 14),
  136.     codecFlagUsedImageBuffer    = (1L << 15)
  137. };
  138.  
  139.  
  140. enum {
  141.     codecNoMemoryPleaseWaitErr    = -8977
  142. };
  143.  
  144.  
  145. enum {
  146.                                                                 /* The minimum data size for spooling in or out data */
  147.     codecMinimumDataSize        = 32768L
  148. };
  149.  
  150.  
  151. enum {
  152.     compressorComponentType        = 'imco',                        /* the type for "Components" which compress images */
  153.     decompressorComponentType    = 'imdc'                        /* the type for "Components" which decompress images */
  154. };
  155.  
  156. typedef Component CompressorComponent;
  157. typedef Component DecompressorComponent;
  158. typedef Component CodecComponent;
  159. #define    anyCodec                ((CodecComponent)0)
  160. #define    bestSpeedCodec            ((CodecComponent)-1)
  161. #define    bestFidelityCodec        ((CodecComponent)-2)
  162. #define    bestCompressionCodec    ((CodecComponent)-3)
  163. typedef long CodecType;
  164. typedef unsigned short CodecFlags;
  165. typedef unsigned long CodecQ;
  166.  
  167. enum {
  168.     codecLosslessQuality        = 0x00000400,
  169.     codecMaxQuality                = 0x000003FF,
  170.     codecMinQuality                = 0x00000000,
  171.     codecLowQuality                = 0x00000100,
  172.     codecNormalQuality            = 0x00000200,
  173.     codecHighQuality            = 0x00000300
  174. };
  175.  
  176.  
  177. enum {
  178.     codecCompletionSource        = (1 << 0),                        /* asynchronous codec is done with source data */
  179.     codecCompletionDest            = (1 << 1),                        /* asynchronous codec is done with destination data */
  180.     codecCompletionDontUnshield    = (1 << 2)                        /* on dest complete don't unshield cursor */
  181. };
  182.  
  183.  
  184. enum {
  185.     codecProgressOpen            = 0,
  186.     codecProgressUpdatePercent    = 1,
  187.     codecProgressClose            = 2
  188. };
  189.  
  190. typedef pascal OSErr (*ICMDataProcPtr)(Ptr *dataP, long bytesNeeded, long refcon);
  191. typedef pascal OSErr (*ICMFlushProcPtr)(Ptr data, long bytesAdded, long refcon);
  192. typedef pascal void (*ICMCompletionProcPtr)(OSErr result, short flags, long refcon);
  193. typedef pascal OSErr (*ICMProgressProcPtr)(short message, Fixed completeness, long refcon);
  194. typedef pascal void (*StdPixProcPtr)(PixMap *src, Rect *srcRect, MatrixRecord *matrix, short mode, RgnHandle mask, PixMap *matte, Rect *matteRect, short flags);
  195. typedef pascal void (*ICMAlignmentProcPtr)(Rect *rp, long refcon);
  196. typedef pascal void (*ICMCursorShieldedProcPtr)(const Rect *r, void *refcon, long flags);
  197. typedef pascal void (*ICMMemoryDisposedProcPtr)(Ptr memoryBlock, void *refcon);
  198. typedef void *ICMCursorNotify;
  199. typedef pascal OSErr (*ICMConvertDataFormatProcPtr)(void *refCon, long flags, Handle desiredFormat, void *srcData, long srcDataSize, void **dstData, long *dstDataSize);
  200.  
  201. #if GENERATINGCFM
  202. typedef UniversalProcPtr ICMDataUPP;
  203. typedef UniversalProcPtr ICMFlushUPP;
  204. typedef UniversalProcPtr ICMCompletionUPP;
  205. typedef UniversalProcPtr ICMProgressUPP;
  206. typedef UniversalProcPtr StdPixUPP;
  207. typedef UniversalProcPtr ICMAlignmentUPP;
  208. typedef UniversalProcPtr ICMCursorShieldedUPP;
  209. typedef UniversalProcPtr ICMMemoryDisposedUPP;
  210. typedef UniversalProcPtr ICMConvertDataFormatUPP;
  211. #else
  212. typedef ICMDataProcPtr ICMDataUPP;
  213. typedef ICMFlushProcPtr ICMFlushUPP;
  214. typedef ICMCompletionProcPtr ICMCompletionUPP;
  215. typedef ICMProgressProcPtr ICMProgressUPP;
  216. typedef StdPixProcPtr StdPixUPP;
  217. typedef ICMAlignmentProcPtr ICMAlignmentUPP;
  218. typedef ICMCursorShieldedProcPtr ICMCursorShieldedUPP;
  219. typedef ICMMemoryDisposedProcPtr ICMMemoryDisposedUPP;
  220. typedef ICMConvertDataFormatProcPtr ICMConvertDataFormatUPP;
  221. #endif
  222. typedef long ImageSequence;
  223. typedef long ImageSequenceDataSource;
  224. typedef long ImageTranscodeSequence;
  225. typedef long ImageFieldSequence;
  226. struct ICMProgressProcRecord {
  227.     ICMProgressUPP                     progressProc;
  228.     long                             progressRefCon;
  229. };
  230. typedef struct ICMProgressProcRecord ICMProgressProcRecord;
  231.  
  232. typedef ICMProgressProcRecord *ICMProgressProcRecordPtr;
  233. struct ICMCompletionProcRecord {
  234.     ICMCompletionUPP                 completionProc;
  235.     long                             completionRefCon;
  236. };
  237. typedef struct ICMCompletionProcRecord ICMCompletionProcRecord;
  238.  
  239. typedef ICMCompletionProcRecord *ICMCompletionProcRecordPtr;
  240. struct ICMDataProcRecord {
  241.     ICMDataUPP                         dataProc;
  242.     long                             dataRefCon;
  243. };
  244. typedef struct ICMDataProcRecord ICMDataProcRecord;
  245.  
  246. typedef ICMDataProcRecord *ICMDataProcRecordPtr;
  247. struct ICMFlushProcRecord {
  248.     ICMFlushUPP                     flushProc;
  249.     long                             flushRefCon;
  250. };
  251. typedef struct ICMFlushProcRecord ICMFlushProcRecord;
  252.  
  253. typedef ICMFlushProcRecord *ICMFlushProcRecordPtr;
  254. struct ICMAlignmentProcRecord {
  255.     ICMAlignmentUPP                 alignmentProc;
  256.     long                             alignmentRefCon;
  257. };
  258. typedef struct ICMAlignmentProcRecord ICMAlignmentProcRecord;
  259.  
  260. typedef ICMAlignmentProcRecord *ICMAlignmentProcRecordPtr;
  261. struct DataRateParams {
  262.     long                             dataRate;
  263.     long                             dataOverrun;
  264.     long                             frameDuration;
  265.     long                             keyFrameRate;
  266.     CodecQ                             minSpatialQuality;
  267.     CodecQ                             minTemporalQuality;
  268. };
  269. typedef struct DataRateParams DataRateParams;
  270.  
  271. typedef DataRateParams *DataRateParamsPtr;
  272. struct ImageDescription {
  273.     long                             idSize;                        /* total size of ImageDescription including extra data ( CLUTs and other per sequence data ) */
  274.     CodecType                         cType;                        /* what kind of codec compressed this data */
  275.     long                             resvd1;                        /* reserved for Apple use */
  276.     short                             resvd2;                        /* reserved for Apple use */
  277.     short                             dataRefIndex;                /* set to zero  */
  278.     short                             version;                    /* which version is this data */
  279.     short                             revisionLevel;                /* what version of that codec did this */
  280.     long                             vendor;                        /* whose  codec compressed this data */
  281.     CodecQ                             temporalQuality;            /* what was the temporal quality factor  */
  282.     CodecQ                             spatialQuality;                /* what was the spatial quality factor */
  283.     short                             width;                        /* how many pixels wide is this data */
  284.     short                             height;                        /* how many pixels high is this data */
  285.     Fixed                             hRes;                        /* horizontal resolution */
  286.     Fixed                             vRes;                        /* vertical resolution */
  287.     long                             dataSize;                    /* if known, the size of data for this image descriptor */
  288.     short                             frameCount;                    /* number of frames this description applies to */
  289.     Str31                             name;                        /* name of codec ( in case not installed )  */
  290.     short                             depth;                        /* what depth is this data (1-32) or ( 33-40 grayscale ) */
  291.     short                             clutID;                        /* clut id or if 0 clut follows  or -1 if no clut */
  292. };
  293. typedef struct ImageDescription ImageDescription;
  294.  
  295. typedef ImageDescription *ImageDescriptionPtr;
  296. typedef ImageDescriptionPtr *ImageDescriptionHandle;
  297. struct CodecInfo {
  298.     Str31                             typeName;                    /* name of the codec type i.e.: 'Apple Image Compression' */
  299.     short                             version;                    /* version of the codec data that this codec knows about */
  300.     short                             revisionLevel;                /* revision level of this codec i.e: 0x00010001 (1.0.1) */
  301.     long                             vendor;                        /* Maker of this codec i.e: 'appl' */
  302.     long                             decompressFlags;            /* codecInfo flags for decompression capabilities */
  303.     long                             compressFlags;                /* codecInfo flags for compression capabilities */
  304.     long                             formatFlags;                /* codecInfo flags for compression format details */
  305.     UInt8                             compressionAccuracy;        /* measure (1-255) of accuracy of this codec for compress (0 if unknown) */
  306.     UInt8                             decompressionAccuracy;        /* measure (1-255) of accuracy of this codec for decompress (0 if unknown) */
  307.     unsigned short                     compressionSpeed;            /* ( millisecs for compressing 320x240 on base mac II) (0 if unknown)  */
  308.     unsigned short                     decompressionSpeed;            /* ( millisecs for decompressing 320x240 on mac II)(0 if unknown)  */
  309.     UInt8                             compressionLevel;            /* measure (1-255) of compression level of this codec (0 if unknown)  */
  310.     UInt8                             resvd;                        /* pad */
  311.     short                             minimumHeight;                /* minimum height of image (block size) */
  312.     short                             minimumWidth;                /* minimum width of image (block size) */
  313.     short                             decompressPipelineLatency;    /* in milliseconds ( for asynchronous codecs ) */
  314.     short                             compressPipelineLatency;    /* in milliseconds ( for asynchronous codecs ) */
  315.     long                             privateData;
  316. };
  317. typedef struct CodecInfo CodecInfo;
  318.  
  319. struct CodecNameSpec {
  320.     CodecComponent                     codec;
  321.     CodecType                         cType;
  322.     Str31                             typeName;
  323.     Handle                             name;
  324. };
  325. typedef struct CodecNameSpec CodecNameSpec;
  326.  
  327. struct CodecNameSpecList {
  328.     short                             count;
  329.     CodecNameSpec                     list[1];
  330. };
  331. typedef struct CodecNameSpecList CodecNameSpecList;
  332.  
  333. typedef CodecNameSpecList *CodecNameSpecListPtr;
  334.  
  335. enum {
  336.     defaultDither                = 0,
  337.     forceDither                    = 1,
  338.     suppressDither                = 2,
  339.     useColorMatching            = 4
  340. };
  341.  
  342.  
  343. enum {
  344.     callStdBits                    = 1,
  345.     callOldBits                    = 2,
  346.     noDefaultOpcodes            = 4
  347. };
  348.  
  349.  
  350. enum {
  351.     graphicsModeStraightAlpha    = 256,
  352.     graphicsModePreWhiteAlpha    = 257,
  353.     graphicsModePreBlackAlpha    = 258,
  354.     graphicsModeCompostion        = 259,
  355.     graphicsModeStraightAlphaBlend = 260
  356. };
  357.  
  358.  
  359. enum {
  360.     evenField1ToEvenFieldOut    = 1 << 0,
  361.     evenField1ToOddFieldOut        = 1 << 1,
  362.     oddField1ToEvenFieldOut        = 1 << 2,
  363.     oddField1ToOddFieldOut        = 1 << 3,
  364.     evenField2ToEvenFieldOut    = 1 << 4,
  365.     evenField2ToOddFieldOut        = 1 << 5,
  366.     oddField2ToEvenFieldOut        = 1 << 6,
  367.     oddField2ToOddFieldOut        = 1 << 7
  368. };
  369.  
  370. struct ICMFrameTimeRecord {
  371.     wide                             value;                        /* frame time*/
  372.     long                             scale;                        /* timescale of value/duration fields*/
  373.     void *                            base;                        /* timebase*/
  374.  
  375.     long                             duration;                    /* duration frame is to be displayed (0 if unknown)*/
  376.     Fixed                             rate;                        /* rate of timebase relative to wall-time*/
  377.  
  378.     long                             recordSize;                    /* total number of bytes in ICMFrameTimeRecord*/
  379.  
  380.     long                             frameNumber;                /* number of frame, zero if not known*/
  381. };
  382. typedef struct ICMFrameTimeRecord ICMFrameTimeRecord;
  383.  
  384. typedef ICMFrameTimeRecord *ICMFrameTimePtr;
  385.  
  386. #if GENERATINGCFM
  387. #else
  388. #endif
  389.  
  390. enum {
  391.     uppICMDataProcInfo = kPascalStackBased
  392.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  393.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(Ptr *)))
  394.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(long)))
  395.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(long))),
  396.     uppICMFlushProcInfo = kPascalStackBased
  397.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  398.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(Ptr)))
  399.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(long)))
  400.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(long))),
  401.     uppICMCompletionProcInfo = kPascalStackBased
  402.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(OSErr)))
  403.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(short)))
  404.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(long))),
  405.     uppICMProgressProcInfo = kPascalStackBased
  406.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  407.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(short)))
  408.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(Fixed)))
  409.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(long))),
  410.     uppStdPixProcInfo = kPascalStackBased
  411.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(PixMap *)))
  412.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(Rect *)))
  413.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(MatrixRecord *)))
  414.          | STACK_ROUTINE_PARAMETER(4, SIZE_CODE(sizeof(short)))
  415.          | STACK_ROUTINE_PARAMETER(5, SIZE_CODE(sizeof(RgnHandle)))
  416.          | STACK_ROUTINE_PARAMETER(6, SIZE_CODE(sizeof(PixMap *)))
  417.          | STACK_ROUTINE_PARAMETER(7, SIZE_CODE(sizeof(Rect *)))
  418.          | STACK_ROUTINE_PARAMETER(8, SIZE_CODE(sizeof(short))),
  419.     uppICMAlignmentProcInfo = kPascalStackBased
  420.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(Rect *)))
  421.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(long))),
  422.     uppICMCursorShieldedProcInfo = kPascalStackBased
  423.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(const Rect *)))
  424.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(void *)))
  425.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(long))),
  426.     uppICMMemoryDisposedProcInfo = kPascalStackBased
  427.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(Ptr)))
  428.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(void *))),
  429.     uppICMConvertDataFormatProcInfo = kPascalStackBased
  430.          | RESULT_SIZE(SIZE_CODE(sizeof(OSErr)))
  431.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(void *)))
  432.          | STACK_ROUTINE_PARAMETER(2, SIZE_CODE(sizeof(long)))
  433.          | STACK_ROUTINE_PARAMETER(3, SIZE_CODE(sizeof(Handle)))
  434.          | STACK_ROUTINE_PARAMETER(4, SIZE_CODE(sizeof(void *)))
  435.          | STACK_ROUTINE_PARAMETER(5, SIZE_CODE(sizeof(long)))
  436.          | STACK_ROUTINE_PARAMETER(6, SIZE_CODE(sizeof(void **)))
  437.          | STACK_ROUTINE_PARAMETER(7, SIZE_CODE(sizeof(long *)))
  438. };
  439.  
  440. #if GENERATINGCFM
  441. #define NewICMDataProc(userRoutine)        \
  442.         (ICMDataUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppICMDataProcInfo, GetCurrentArchitecture())
  443. #define NewICMFlushProc(userRoutine)        \
  444.         (ICMFlushUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppICMFlushProcInfo, GetCurrentArchitecture())
  445. #define NewICMCompletionProc(userRoutine)        \
  446.         (ICMCompletionUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppICMCompletionProcInfo, GetCurrentArchitecture())
  447. #define NewICMProgressProc(userRoutine)        \
  448.         (ICMProgressUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppICMProgressProcInfo, GetCurrentArchitecture())
  449. #define NewStdPixProc(userRoutine)        \
  450.         (StdPixUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppStdPixProcInfo, GetCurrentArchitecture())
  451. #define NewICMAlignmentProc(userRoutine)        \
  452.         (ICMAlignmentUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppICMAlignmentProcInfo, GetCurrentArchitecture())
  453. #define NewICMCursorShieldedProc(userRoutine)        \
  454.         (ICMCursorShieldedUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppICMCursorShieldedProcInfo, GetCurrentArchitecture())
  455. #define NewICMMemoryDisposedProc(userRoutine)        \
  456.         (ICMMemoryDisposedUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppICMMemoryDisposedProcInfo, GetCurrentArchitecture())
  457. #define NewICMConvertDataFormatProc(userRoutine)        \
  458.         (ICMConvertDataFormatUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppICMConvertDataFormatProcInfo, GetCurrentArchitecture())
  459. #else
  460. #define NewICMDataProc(userRoutine)        \
  461.         ((ICMDataUPP) (userRoutine))
  462. #define NewICMFlushProc(userRoutine)        \
  463.         ((ICMFlushUPP) (userRoutine))
  464. #define NewICMCompletionProc(userRoutine)        \
  465.         ((ICMCompletionUPP) (userRoutine))
  466. #define NewICMProgressProc(userRoutine)        \
  467.         ((ICMProgressUPP) (userRoutine))
  468. #define NewStdPixProc(userRoutine)        \
  469.         ((StdPixUPP) (userRoutine))
  470. #define NewICMAlignmentProc(userRoutine)        \
  471.         ((ICMAlignmentUPP) (userRoutine))
  472. #define NewICMCursorShieldedProc(userRoutine)        \
  473.         ((ICMCursorShieldedUPP) (userRoutine))
  474. #define NewICMMemoryDisposedProc(userRoutine)        \
  475.         ((ICMMemoryDisposedUPP) (userRoutine))
  476. #define NewICMConvertDataFormatProc(userRoutine)        \
  477.         ((ICMConvertDataFormatUPP) (userRoutine))
  478. #endif
  479.  
  480. #if GENERATINGCFM
  481. #define CallICMDataProc(userRoutine, dataP, bytesNeeded, refcon)        \
  482.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppICMDataProcInfo, (dataP), (bytesNeeded), (refcon))
  483. #define CallICMFlushProc(userRoutine, data, bytesAdded, refcon)        \
  484.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppICMFlushProcInfo, (data), (bytesAdded), (refcon))
  485. #define CallICMCompletionProc(userRoutine, result, flags, refcon)        \
  486.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppICMCompletionProcInfo, (result), (flags), (refcon))
  487. #define CallICMProgressProc(userRoutine, message, completeness, refcon)        \
  488.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppICMProgressProcInfo, (message), (completeness), (refcon))
  489. #define CallStdPixProc(userRoutine, src, srcRect, matrix, mode, mask, matte, matteRect, flags)        \
  490.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppStdPixProcInfo, (src), (srcRect), (matrix), (mode), (mask), (matte), (matteRect), (flags))
  491. #define CallICMAlignmentProc(userRoutine, rp, refcon)        \
  492.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppICMAlignmentProcInfo, (rp), (refcon))
  493. #define CallICMCursorShieldedProc(userRoutine, r, refcon, flags)        \
  494.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppICMCursorShieldedProcInfo, (r), (refcon), (flags))
  495. #define CallICMMemoryDisposedProc(userRoutine, memoryBlock, refcon)        \
  496.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppICMMemoryDisposedProcInfo, (memoryBlock), (refcon))
  497. #define CallICMConvertDataFormatProc(userRoutine, refCon, flags, desiredFormat, srcData, srcDataSize, dstData, dstDataSize)        \
  498.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppICMConvertDataFormatProcInfo, (refCon), (flags), (desiredFormat), (srcData), (srcDataSize), (dstData), (dstDataSize))
  499. #else
  500. #define CallICMDataProc(userRoutine, dataP, bytesNeeded, refcon)        \
  501.         (*(userRoutine))((dataP), (bytesNeeded), (refcon))
  502. #define CallICMFlushProc(userRoutine, data, bytesAdded, refcon)        \
  503.         (*(userRoutine))((data), (bytesAdded), (refcon))
  504. #define CallICMCompletionProc(userRoutine, result, flags, refcon)        \
  505.         (*(userRoutine))((result), (flags), (refcon))
  506. #define CallICMProgressProc(userRoutine, message, completeness, refcon)        \
  507.         (*(userRoutine))((message), (completeness), (refcon))
  508. #define CallStdPixProc(userRoutine, src, srcRect, matrix, mode, mask, matte, matteRect, flags)        \
  509.         (*(userRoutine))((src), (srcRect), (matrix), (mode), (mask), (matte), (matteRect), (flags))
  510. #define CallICMAlignmentProc(userRoutine, rp, refcon)        \
  511.         (*(userRoutine))((rp), (refcon))
  512. #define CallICMCursorShieldedProc(userRoutine, r, refcon, flags)        \
  513.         (*(userRoutine))((r), (refcon), (flags))
  514. #define CallICMMemoryDisposedProc(userRoutine, memoryBlock, refcon)        \
  515.         (*(userRoutine))((memoryBlock), (refcon))
  516. #define CallICMConvertDataFormatProc(userRoutine, refCon, flags, desiredFormat, srcData, srcDataSize, dstData, dstDataSize)        \
  517.         (*(userRoutine))((refCon), (flags), (desiredFormat), (srcData), (srcDataSize), (dstData), (dstDataSize))
  518. #endif
  519. extern pascal OSErr CodecManagerVersion(long *version)
  520.  TWOWORDINLINE(0x7000, 0xAAA3);
  521.  
  522. extern pascal OSErr GetCodecNameList(CodecNameSpecListPtr *list, short showAll)
  523.  TWOWORDINLINE(0x7001, 0xAAA3);
  524.  
  525. extern pascal OSErr DisposeCodecNameList(CodecNameSpecListPtr list)
  526.  TWOWORDINLINE(0x700F, 0xAAA3);
  527.  
  528. extern pascal OSErr GetCodecInfo(CodecInfo *info, CodecType cType, CodecComponent codec)
  529.  TWOWORDINLINE(0x7003, 0xAAA3);
  530.  
  531. extern pascal OSErr GetMaxCompressionSize(PixMapHandle src, const Rect *srcRect, short colorDepth, CodecQ quality, CodecType cType, CompressorComponent codec, long *size)
  532.  TWOWORDINLINE(0x7004, 0xAAA3);
  533.  
  534. extern pascal OSErr GetCSequenceMaxCompressionSize(ImageSequence seqID, PixMapHandle src, long *size)
  535.  FOURWORDINLINE(0x203C, 0x000C, 0x0074, 0xAAA3);
  536.  
  537. extern pascal OSErr GetCompressionTime(PixMapHandle src, const Rect *srcRect, short colorDepth, CodecType cType, CompressorComponent codec, CodecQ *spatialQuality, CodecQ *temporalQuality, unsigned long *compressTime)
  538.  TWOWORDINLINE(0x7005, 0xAAA3);
  539.  
  540. extern pascal OSErr CompressImage(PixMapHandle src, const Rect *srcRect, CodecQ quality, CodecType cType, ImageDescriptionHandle desc, Ptr data)
  541.  TWOWORDINLINE(0x7006, 0xAAA3);
  542.  
  543. extern pascal OSErr FCompressImage(PixMapHandle src, const Rect *srcRect, short colorDepth, CodecQ quality, CodecType cType, CompressorComponent codec, CTabHandle ctable, CodecFlags flags, long bufferSize, ICMFlushProcRecordPtr flushProc, ICMProgressProcRecordPtr progressProc, ImageDescriptionHandle desc, Ptr data)
  544.  TWOWORDINLINE(0x7007, 0xAAA3);
  545.  
  546. extern pascal OSErr DecompressImage(Ptr data, ImageDescriptionHandle desc, PixMapHandle dst, const Rect *srcRect, const Rect *dstRect, short mode, RgnHandle mask)
  547.  TWOWORDINLINE(0x7008, 0xAAA3);
  548.  
  549. extern pascal OSErr FDecompressImage(Ptr data, ImageDescriptionHandle desc, PixMapHandle dst, const Rect *srcRect, MatrixRecordPtr matrix, short mode, RgnHandle mask, PixMapHandle matte, const Rect *matteRect, CodecQ accuracy, DecompressorComponent codec, long bufferSize, ICMDataProcRecordPtr dataProc, ICMProgressProcRecordPtr progressProc)
  550.  TWOWORDINLINE(0x7009, 0xAAA3);
  551.  
  552. extern pascal OSErr CompressSequenceBegin(ImageSequence *seqID, PixMapHandle src, PixMapHandle prev, const Rect *srcRect, const Rect *prevRect, short colorDepth, CodecType cType, CompressorComponent codec, CodecQ spatialQuality, CodecQ temporalQuality, long keyFrameRate, CTabHandle ctable, CodecFlags flags, ImageDescriptionHandle desc)
  553.  TWOWORDINLINE(0x700A, 0xAAA3);
  554.  
  555. extern pascal OSErr CompressSequenceFrame(ImageSequence seqID, PixMapHandle src, const Rect *srcRect, CodecFlags flags, Ptr data, long *dataSize, UInt8 *similarity, ICMCompletionProcRecordPtr asyncCompletionProc)
  556.  TWOWORDINLINE(0x700B, 0xAAA3);
  557.  
  558. extern pascal OSErr DecompressSequenceBegin(ImageSequence *seqID, ImageDescriptionHandle desc, CGrafPtr port, GDHandle gdh, const Rect *srcRect, MatrixRecordPtr matrix, short mode, RgnHandle mask, CodecFlags flags, CodecQ accuracy, DecompressorComponent codec)
  559.  TWOWORDINLINE(0x700D, 0xAAA3);
  560.  
  561. extern pascal OSErr DecompressSequenceBeginS(ImageSequence *seqID, ImageDescriptionHandle desc, Ptr data, long dataSize, CGrafPtr port, GDHandle gdh, const Rect *srcRect, MatrixRecordPtr matrix, short mode, RgnHandle mask, CodecFlags flags, CodecQ accuracy, DecompressorComponent codec)
  562.  FOURWORDINLINE(0x203C, 0x0030, 0x005D, 0xAAA3);
  563.  
  564. extern pascal OSErr DecompressSequenceFrame(ImageSequence seqID, Ptr data, CodecFlags inFlags, CodecFlags *outFlags, ICMCompletionProcRecordPtr asyncCompletionProc)
  565.  TWOWORDINLINE(0x700E, 0xAAA3);
  566.  
  567. extern pascal OSErr DecompressSequenceFrameS(ImageSequence seqID, Ptr data, long dataSize, CodecFlags inFlags, CodecFlags *outFlags, ICMCompletionProcRecordPtr asyncCompletionProc)
  568.  FOURWORDINLINE(0x203C, 0x0016, 0x0047, 0xAAA3);
  569.  
  570. extern pascal OSErr DecompressSequenceFrameWhen(ImageSequence seqID, Ptr data, long dataSize, CodecFlags inFlags, CodecFlags *outFlags, ICMCompletionProcRecordPtr asyncCompletionProc, const ICMFrameTimeRecord *frameTime)
  571.  FOURWORDINLINE(0x203C, 0x001A, 0x005E, 0xAAA3);
  572.  
  573. extern pascal OSErr CDSequenceFlush(ImageSequence seqID)
  574.  FOURWORDINLINE(0x203C, 0x0004, 0x005F, 0xAAA3);
  575.  
  576. extern pascal OSErr SetDSequenceMatrix(ImageSequence seqID, MatrixRecordPtr matrix)
  577.  TWOWORDINLINE(0x7010, 0xAAA3);
  578.  
  579. extern pascal OSErr SetDSequenceMatte(ImageSequence seqID, PixMapHandle matte, const Rect *matteRect)
  580.  TWOWORDINLINE(0x7011, 0xAAA3);
  581.  
  582. extern pascal OSErr SetDSequenceMask(ImageSequence seqID, RgnHandle mask)
  583.  TWOWORDINLINE(0x7012, 0xAAA3);
  584.  
  585. extern pascal OSErr SetDSequenceTransferMode(ImageSequence seqID, short mode, const RGBColor *opColor)
  586.  TWOWORDINLINE(0x7013, 0xAAA3);
  587.  
  588. extern pascal OSErr SetDSequenceDataProc(ImageSequence seqID, ICMDataProcRecordPtr dataProc, long bufferSize)
  589.  TWOWORDINLINE(0x7014, 0xAAA3);
  590.  
  591. extern pascal OSErr SetDSequenceAccuracy(ImageSequence seqID, CodecQ accuracy)
  592.  TWOWORDINLINE(0x7034, 0xAAA3);
  593.  
  594. extern pascal OSErr SetDSequenceSrcRect(ImageSequence seqID, const Rect *srcRect)
  595.  TWOWORDINLINE(0x7035, 0xAAA3);
  596.  
  597. extern pascal OSErr GetDSequenceImageBuffer(ImageSequence seqID, GWorldPtr *gworld)
  598.  TWOWORDINLINE(0x7015, 0xAAA3);
  599.  
  600. extern pascal OSErr GetDSequenceScreenBuffer(ImageSequence seqID, GWorldPtr *gworld)
  601.  TWOWORDINLINE(0x7016, 0xAAA3);
  602.  
  603. extern pascal OSErr SetCSequenceQuality(ImageSequence seqID, CodecQ spatialQuality, CodecQ temporalQuality)
  604.  TWOWORDINLINE(0x7017, 0xAAA3);
  605.  
  606. extern pascal OSErr SetCSequencePrev(ImageSequence seqID, PixMapHandle prev, const Rect *prevRect)
  607.  TWOWORDINLINE(0x7018, 0xAAA3);
  608.  
  609. extern pascal OSErr SetCSequenceFlushProc(ImageSequence seqID, ICMFlushProcRecordPtr flushProc, long bufferSize)
  610.  TWOWORDINLINE(0x7033, 0xAAA3);
  611.  
  612. extern pascal OSErr SetCSequenceKeyFrameRate(ImageSequence seqID, long keyFrameRate)
  613.  TWOWORDINLINE(0x7036, 0xAAA3);
  614.  
  615. extern pascal OSErr GetCSequenceKeyFrameRate(ImageSequence seqID, long *keyFrameRate)
  616.  FOURWORDINLINE(0x203C, 0x0008, 0x004B, 0xAAA3);
  617.  
  618. extern pascal OSErr GetCSequencePrevBuffer(ImageSequence seqID, GWorldPtr *gworld)
  619.  TWOWORDINLINE(0x7019, 0xAAA3);
  620.  
  621. extern pascal OSErr CDSequenceBusy(ImageSequence seqID)
  622.  TWOWORDINLINE(0x701A, 0xAAA3);
  623.  
  624. extern pascal OSErr CDSequenceEnd(ImageSequence seqID)
  625.  TWOWORDINLINE(0x701B, 0xAAA3);
  626.  
  627. extern pascal OSErr CDSequenceEquivalentImageDescription(ImageSequence seqID, ImageDescriptionHandle newDesc, Boolean *equivalent)
  628.  FOURWORDINLINE(0x203C, 0x000C, 0x0065, 0xAAA3);
  629.  
  630. extern pascal OSErr GetCompressedImageSize(ImageDescriptionHandle desc, Ptr data, long bufferSize, ICMDataProcRecordPtr dataProc, long *dataSize)
  631.  TWOWORDINLINE(0x701C, 0xAAA3);
  632.  
  633. extern pascal OSErr GetSimilarity(PixMapHandle src, const Rect *srcRect, ImageDescriptionHandle desc, Ptr data, Fixed *similarity)
  634.  TWOWORDINLINE(0x701D, 0xAAA3);
  635.  
  636. extern pascal OSErr GetImageDescriptionCTable(ImageDescriptionHandle desc, CTabHandle *ctable)
  637.  TWOWORDINLINE(0x701E, 0xAAA3);
  638.  
  639. extern pascal OSErr SetImageDescriptionCTable(ImageDescriptionHandle desc, CTabHandle ctable)
  640.  TWOWORDINLINE(0x701F, 0xAAA3);
  641.  
  642. extern pascal OSErr GetImageDescriptionExtension(ImageDescriptionHandle desc, Handle *extension, long idType, long index)
  643.  TWOWORDINLINE(0x7020, 0xAAA3);
  644.  
  645. extern pascal OSErr AddImageDescriptionExtension(ImageDescriptionHandle desc, Handle extension, long idType)
  646.  TWOWORDINLINE(0x7021, 0xAAA3);
  647.  
  648. extern pascal OSErr RemoveImageDescriptionExtension(ImageDescriptionHandle desc, long idType, long index)
  649.  FOURWORDINLINE(0x203C, 0x000C, 0x003A, 0xAAA3);
  650.  
  651. extern pascal OSErr CountImageDescriptionExtensionType(ImageDescriptionHandle desc, long idType, long *count)
  652.  FOURWORDINLINE(0x203C, 0x000C, 0x003B, 0xAAA3);
  653.  
  654. extern pascal OSErr GetNextImageDescriptionExtensionType(ImageDescriptionHandle desc, long *idType)
  655.  FOURWORDINLINE(0x203C, 0x0008, 0x003C, 0xAAA3);
  656.  
  657. extern pascal OSErr FindCodec(CodecType cType, CodecComponent specCodec, CompressorComponent *compressor, DecompressorComponent *decompressor)
  658.  TWOWORDINLINE(0x7023, 0xAAA3);
  659.  
  660. extern pascal OSErr CompressPicture(PicHandle srcPicture, PicHandle dstPicture, CodecQ quality, CodecType cType)
  661.  TWOWORDINLINE(0x7024, 0xAAA3);
  662.  
  663. extern pascal OSErr FCompressPicture(PicHandle srcPicture, PicHandle dstPicture, short colorDepth, CTabHandle ctable, CodecQ quality, short doDither, short compressAgain, ICMProgressProcRecordPtr progressProc, CodecType cType, CompressorComponent codec)
  664.  TWOWORDINLINE(0x7025, 0xAAA3);
  665.  
  666. extern pascal OSErr CompressPictureFile(short srcRefNum, short dstRefNum, CodecQ quality, CodecType cType)
  667.  TWOWORDINLINE(0x7026, 0xAAA3);
  668.  
  669. extern pascal OSErr FCompressPictureFile(short srcRefNum, short dstRefNum, short colorDepth, CTabHandle ctable, CodecQ quality, short doDither, short compressAgain, ICMProgressProcRecordPtr progressProc, CodecType cType, CompressorComponent codec)
  670.  TWOWORDINLINE(0x7027, 0xAAA3);
  671.  
  672. extern pascal OSErr GetPictureFileHeader(short refNum, Rect *frame, OpenCPicParams *header)
  673.  TWOWORDINLINE(0x7028, 0xAAA3);
  674.  
  675. extern pascal OSErr DrawPictureFile(short refNum, const Rect *frame, ICMProgressProcRecordPtr progressProc)
  676.  TWOWORDINLINE(0x7029, 0xAAA3);
  677.  
  678. extern pascal OSErr DrawTrimmedPicture(PicHandle srcPicture, const Rect *frame, RgnHandle trimMask, short doDither, ICMProgressProcRecordPtr progressProc)
  679.  TWOWORDINLINE(0x702E, 0xAAA3);
  680.  
  681. extern pascal OSErr DrawTrimmedPictureFile(short srcRefnum, const Rect *frame, RgnHandle trimMask, short doDither, ICMProgressProcRecordPtr progressProc)
  682.  TWOWORDINLINE(0x702F, 0xAAA3);
  683.  
  684. extern pascal OSErr MakeThumbnailFromPicture(PicHandle picture, short colorDepth, PicHandle thumbnail, ICMProgressProcRecordPtr progressProc)
  685.  TWOWORDINLINE(0x702A, 0xAAA3);
  686.  
  687. extern pascal OSErr MakeThumbnailFromPictureFile(short refNum, short colorDepth, PicHandle thumbnail, ICMProgressProcRecordPtr progressProc)
  688.  TWOWORDINLINE(0x702B, 0xAAA3);
  689.  
  690. extern pascal OSErr MakeThumbnailFromPixMap(PixMapHandle src, const Rect *srcRect, short colorDepth, PicHandle thumbnail, ICMProgressProcRecordPtr progressProc)
  691.  TWOWORDINLINE(0x702C, 0xAAA3);
  692.  
  693. extern pascal OSErr TrimImage(ImageDescriptionHandle desc, Ptr inData, long inBufferSize, ICMDataProcRecordPtr dataProc, Ptr outData, long outBufferSize, ICMFlushProcRecordPtr flushProc, Rect *trimRect, ICMProgressProcRecordPtr progressProc)
  694.  TWOWORDINLINE(0x702D, 0xAAA3);
  695.  
  696. extern pascal OSErr ConvertImage(ImageDescriptionHandle srcDD, Ptr srcData, short colorDepth, CTabHandle ctable, CodecQ accuracy, CodecQ quality, CodecType cType, CodecComponent codec, ImageDescriptionHandle dstDD, Ptr dstData)
  697.  TWOWORDINLINE(0x7030, 0xAAA3);
  698.  
  699. extern pascal OSErr GetCompressedPixMapInfo(PixMapPtr pix, ImageDescriptionHandle *desc, Ptr *data, long *bufferSize, ICMDataProcRecord *dataProc, ICMProgressProcRecord *progressProc)
  700.  TWOWORDINLINE(0x7037, 0xAAA3);
  701.  
  702. extern pascal OSErr SetCompressedPixMapInfo(PixMapPtr pix, ImageDescriptionHandle desc, Ptr data, long bufferSize, ICMDataProcRecordPtr dataProc, ICMProgressProcRecordPtr progressProc)
  703.  TWOWORDINLINE(0x7038, 0xAAA3);
  704.  
  705. extern pascal void StdPix(PixMapPtr src, const Rect *srcRect, MatrixRecordPtr matrix, short mode, RgnHandle mask, PixMapPtr matte, const Rect *matteRect, short flags)
  706.  TWOWORDINLINE(0x700C, 0xAAA3);
  707.  
  708. extern pascal OSErr TransformRgn(MatrixRecordPtr matrix, RgnHandle rgn)
  709.  TWOWORDINLINE(0x7039, 0xAAA3);
  710.  
  711. /*
  712. **********
  713.     preview stuff
  714. **********
  715. */
  716. extern pascal void SFGetFilePreview(Point where, ConstStr255Param prompt, FileFilterUPP fileFilter, short numTypes, ConstSFTypeListPtr typeList, DlgHookUPP dlgHook, SFReply *reply)
  717.  TWOWORDINLINE(0x7041, 0xAAA3);
  718.  
  719. extern pascal void SFPGetFilePreview(Point where, ConstStr255Param prompt, FileFilterUPP fileFilter, short numTypes, ConstSFTypeListPtr typeList, DlgHookUPP dlgHook, SFReply *reply, short dlgID, ModalFilterUPP filterProc)
  720.  TWOWORDINLINE(0x7042, 0xAAA3);
  721.  
  722. extern pascal void StandardGetFilePreview(FileFilterUPP fileFilter, short numTypes, ConstSFTypeListPtr typeList, StandardFileReply *reply)
  723.  TWOWORDINLINE(0x7043, 0xAAA3);
  724.  
  725. extern pascal void CustomGetFilePreview(FileFilterYDUPP fileFilter, short numTypes, ConstSFTypeListPtr typeList, StandardFileReply *reply, short dlgID, Point where, DlgHookYDUPP dlgHook, ModalFilterYDUPP filterProc, ActivationOrderListPtr activeList, ActivateYDUPP activateProc, void *yourDataPtr)
  726.  TWOWORDINLINE(0x7044, 0xAAA3);
  727.  
  728. extern pascal OSErr MakeFilePreview(short resRefNum, ICMProgressProcRecordPtr progress)
  729.  TWOWORDINLINE(0x7045, 0xAAA3);
  730.  
  731. extern pascal OSErr AddFilePreview(short resRefNum, OSType previewType, Handle previewData)
  732.  TWOWORDINLINE(0x7046, 0xAAA3);
  733.  
  734.  
  735. enum {
  736.     sfpItemPreviewAreaUser        = 11,
  737.     sfpItemPreviewStaticText    = 12,
  738.     sfpItemPreviewDividerUser    = 13,
  739.     sfpItemCreatePreviewButton    = 14,
  740.     sfpItemShowPreviewButton    = 15
  741. };
  742.  
  743. struct PreviewResourceRecord {
  744.     unsigned long                     modDate;
  745.     short                             version;
  746.     OSType                             resType;
  747.     short                             resID;
  748. };
  749. typedef struct PreviewResourceRecord PreviewResourceRecord;
  750.  
  751. typedef PreviewResourceRecord *PreviewResourcePtr;
  752. typedef PreviewResourcePtr *PreviewResource;
  753. extern pascal void AlignScreenRect(Rect *rp, ICMAlignmentProcRecordPtr alignmentProc)
  754.  FOURWORDINLINE(0x203C, 0x0008, 0x004C, 0xAAA3);
  755.  
  756. extern pascal void AlignWindow(WindowPtr wp, Boolean front, const Rect *alignmentRect, ICMAlignmentProcRecordPtr alignmentProc)
  757.  FOURWORDINLINE(0x203C, 0x000E, 0x004D, 0xAAA3);
  758.  
  759. extern pascal void DragAlignedWindow(WindowPtr wp, Point startPt, Rect *boundsRect, Rect *alignmentRect, ICMAlignmentProcRecordPtr alignmentProc)
  760.  FOURWORDINLINE(0x203C, 0x0014, 0x004E, 0xAAA3);
  761.  
  762. extern pascal long DragAlignedGrayRgn(RgnHandle theRgn, Point startPt, Rect *boundsRect, Rect *slopRect, short axis, UniversalProcPtr actionProc, Rect *alignmentRect, ICMAlignmentProcRecordPtr alignmentProc)
  763.  FOURWORDINLINE(0x203C, 0x001E, 0x004F, 0xAAA3);
  764.  
  765. extern pascal OSErr SetCSequenceDataRateParams(ImageSequence seqID, DataRateParamsPtr params)
  766.  FOURWORDINLINE(0x203C, 0x0008, 0x0050, 0xAAA3);
  767.  
  768. extern pascal OSErr SetCSequenceFrameNumber(ImageSequence seqID, long frameNumber)
  769.  FOURWORDINLINE(0x203C, 0x0008, 0x0051, 0xAAA3);
  770.  
  771. extern pascal OSErr NewImageGWorld(GWorldPtr *gworld, ImageDescriptionHandle idh, GWorldFlags flags)
  772.  FOURWORDINLINE(0x203C, 0x000C, 0x0052, 0xAAA3);
  773.  
  774. extern pascal OSErr GetCSequenceDataRateParams(ImageSequence seqID, DataRateParamsPtr params)
  775.  FOURWORDINLINE(0x203C, 0x0008, 0x0053, 0xAAA3);
  776.  
  777. extern pascal OSErr GetCSequenceFrameNumber(ImageSequence seqID, long *frameNumber)
  778.  FOURWORDINLINE(0x203C, 0x0008, 0x0054, 0xAAA3);
  779.  
  780. extern pascal OSErr GetBestDeviceRect(GDHandle *gdh, Rect *rp)
  781.  FOURWORDINLINE(0x203C, 0x0008, 0x0055, 0xAAA3);
  782.  
  783. extern pascal OSErr SetSequenceProgressProc(ImageSequence seqID, ICMProgressProcRecord *progressProc)
  784.  FOURWORDINLINE(0x203C, 0x0008, 0x0056, 0xAAA3);
  785.  
  786. extern pascal OSErr GDHasScale(GDHandle gdh, short depth, Fixed *scale)
  787.  FOURWORDINLINE(0x203C, 0x000A, 0x005A, 0xAAA3);
  788.  
  789. extern pascal OSErr GDGetScale(GDHandle gdh, Fixed *scale, short *flags)
  790.  FOURWORDINLINE(0x203C, 0x000C, 0x005B, 0xAAA3);
  791.  
  792. extern pascal OSErr GDSetScale(GDHandle gdh, Fixed scale, short flags)
  793.  FOURWORDINLINE(0x203C, 0x000A, 0x005C, 0xAAA3);
  794.  
  795. extern pascal OSErr ICMShieldSequenceCursor(ImageSequence seqID)
  796.  FOURWORDINLINE(0x203C, 0x0004, 0x0062, 0xAAA3);
  797.  
  798. extern pascal void ICMDecompressComplete(ImageSequence seqID, OSErr err, short flag, ICMCompletionProcRecordPtr completionRtn)
  799.  FOURWORDINLINE(0x203C, 0x000C, 0x0063, 0xAAA3);
  800.  
  801. extern pascal OSErr SetDSequenceTimeCode(ImageSequence seqID, void *timeCodeFormat, void *timeCodeTime)
  802.  FOURWORDINLINE(0x203C, 0x000C, 0x0064, 0xAAA3);
  803.  
  804. extern pascal OSErr CDSequenceNewMemory(ImageSequence seqID, Ptr *data, Size dataSize, long dataUse, ICMMemoryDisposedUPP memoryGoneProc, void *refCon)
  805.  FOURWORDINLINE(0x203C, 0x0018, 0x0066, 0xAAA3);
  806.  
  807. extern pascal OSErr CDSequenceDisposeMemory(ImageSequence seqID, Ptr data)
  808.  FOURWORDINLINE(0x203C, 0x0008, 0x0067, 0xAAA3);
  809.  
  810. extern pascal OSErr CDSequenceNewDataSource(ImageSequence seqID, ImageSequenceDataSource *sourceID, OSType sourceType, long sourceInputNumber, Handle dataDescription, void *transferProc, void *refCon)
  811.  FOURWORDINLINE(0x203C, 0x001C, 0x0068, 0xAAA3);
  812.  
  813. extern pascal OSErr CDSequenceDisposeDataSource(ImageSequenceDataSource sourceID)
  814.  FOURWORDINLINE(0x203C, 0x0004, 0x0069, 0xAAA3);
  815.  
  816. extern pascal OSErr CDSequenceSetSourceData(ImageSequenceDataSource sourceID, void *data, long dataSize)
  817.  FOURWORDINLINE(0x203C, 0x000C, 0x006A, 0xAAA3);
  818.  
  819. extern pascal OSErr CDSequenceChangedSourceData(ImageSequenceDataSource sourceID)
  820.  FOURWORDINLINE(0x203C, 0x0004, 0x006B, 0xAAA3);
  821.  
  822. extern pascal OSErr PtInDSequenceData(ImageSequence seqID, void *data, Size dataSize, Point where, Boolean *hit)
  823.  FOURWORDINLINE(0x203C, 0x0014, 0x006C, 0xAAA3);
  824.  
  825. extern pascal OSErr GetGraphicsImporterForFile(const FSSpec *theFile, ComponentInstance *gi)
  826.  FOURWORDINLINE(0x203C, 0x0008, 0x006E, 0xAAA3);
  827.  
  828. extern pascal OSErr GetGraphicsImporterForDataRef(Handle dataRef, OSType dataRefType, ComponentInstance *gi)
  829.  FOURWORDINLINE(0x203C, 0x000C, 0x0077, 0xAAA3);
  830.  
  831. extern pascal OSErr ImageTranscodeSequenceBegin(ImageTranscodeSequence *its, ImageDescriptionHandle srcDesc, OSType destType, ImageDescriptionHandle *dstDesc, void *data, long dataSize)
  832.  FOURWORDINLINE(0x203C, 0x0018, 0x006F, 0xAAA3);
  833.  
  834. extern pascal OSErr ImageTranscodeSequenceEnd(ImageTranscodeSequence its)
  835.  FOURWORDINLINE(0x203C, 0x0004, 0x0070, 0xAAA3);
  836.  
  837. extern pascal OSErr ImageTranscodeFrame(ImageTranscodeSequence its, void *srcData, long srcDataSize, void **dstData, long *dstDataSize)
  838.  FOURWORDINLINE(0x203C, 0x0014, 0x0071, 0xAAA3);
  839.  
  840. extern pascal OSErr ImageTranscodeDisposeFrameData(ImageTranscodeSequence its, void *dstData)
  841.  FOURWORDINLINE(0x203C, 0x0004, 0x0072, 0xAAA3);
  842.  
  843. extern pascal OSErr CDSequenceInvalidate(ImageSequence seqID, RgnHandle invalRgn)
  844.  FOURWORDINLINE(0x203C, 0x0008, 0x0073, 0xAAA3);
  845.  
  846. extern pascal OSErr ImageFieldSequenceBegin(ImageFieldSequence *ifs, ImageDescriptionHandle desc1, ImageDescriptionHandle desc2, ImageDescriptionHandle descOut)
  847.  FOURWORDINLINE(0x203C, 0x0010, 0x006D, 0xAAA3);
  848.  
  849. extern pascal OSErr ImageFieldSequenceExtractCombine(ImageFieldSequence ifs, long fieldFlags, void *data1, long dataSize1, void *data2, long dataSize2, void *outputData, long *outDataSize)
  850.  FOURWORDINLINE(0x203C, 0x0020, 0x0075, 0xAAA3);
  851.  
  852. extern pascal OSErr ImageFieldSequenceEnd(ImageFieldSequence ifs)
  853.  FOURWORDINLINE(0x203C, 0x0004, 0x0076, 0xAAA3);
  854.  
  855.  
  856. enum {
  857.     identityMatrixType            = 0x00,                            /* result if matrix is identity */
  858.     translateMatrixType            = 0x01,                            /* result if matrix translates */
  859.     scaleMatrixType                = 0x02,                            /* result if matrix scales */
  860.     scaleTranslateMatrixType    = 0x03,                            /* result if matrix scales and translates */
  861.     linearMatrixType            = 0x04,                            /* result if matrix is general 2 x 2 */
  862.     linearTranslateMatrixType    = 0x05,                            /* result if matrix is general 2 x 2 and translates */
  863.     perspectiveMatrixType        = 0x06                            /* result if matrix is general 3 x 3 */
  864. };
  865.  
  866. typedef unsigned short MatrixFlags;
  867. extern pascal short GetMatrixType(const MatrixRecord *m)
  868.  TWOWORDINLINE(0x7014, 0xABC2);
  869.  
  870. extern pascal void CopyMatrix(const MatrixRecord *m1, MatrixRecord *m2)
  871.  TWOWORDINLINE(0x7020, 0xABC2);
  872.  
  873. extern pascal Boolean EqualMatrix(const MatrixRecord *m1, const MatrixRecord *m2)
  874.  TWOWORDINLINE(0x7021, 0xABC2);
  875.  
  876. extern pascal void SetIdentityMatrix(MatrixRecord *matrix)
  877.  TWOWORDINLINE(0x7015, 0xABC2);
  878.  
  879. extern pascal void TranslateMatrix(MatrixRecord *m, Fixed deltaH, Fixed deltaV)
  880.  TWOWORDINLINE(0x7019, 0xABC2);
  881.  
  882. extern pascal void RotateMatrix(MatrixRecord *m, Fixed degrees, Fixed aboutX, Fixed aboutY)
  883.  TWOWORDINLINE(0x7016, 0xABC2);
  884.  
  885. extern pascal void ScaleMatrix(MatrixRecord *m, Fixed scaleX, Fixed scaleY, Fixed aboutX, Fixed aboutY)
  886.  TWOWORDINLINE(0x7017, 0xABC2);
  887.  
  888. extern pascal void SkewMatrix(MatrixRecord *m, Fixed skewX, Fixed skewY, Fixed aboutX, Fixed aboutY)
  889.  TWOWORDINLINE(0x7018, 0xABC2);
  890.  
  891. extern pascal OSErr TransformFixedPoints(const MatrixRecord *m, FixedPoint *fpt, long count)
  892.  TWOWORDINLINE(0x7022, 0xABC2);
  893.  
  894. extern pascal OSErr TransformPoints(const MatrixRecord *mp, Point *pt1, long count)
  895.  TWOWORDINLINE(0x7023, 0xABC2);
  896.  
  897. extern pascal Boolean TransformFixedRect(const MatrixRecord *m, FixedRect *fr, FixedPoint *fpp)
  898.  TWOWORDINLINE(0x7024, 0xABC2);
  899.  
  900. extern pascal Boolean TransformRect(const MatrixRecord *m, Rect *r, FixedPoint *fpp)
  901.  TWOWORDINLINE(0x7025, 0xABC2);
  902.  
  903. extern pascal Boolean InverseMatrix(const MatrixRecord *m, MatrixRecord *im)
  904.  TWOWORDINLINE(0x701C, 0xABC2);
  905.  
  906. extern pascal void ConcatMatrix(const MatrixRecord *a, MatrixRecord *b)
  907.  TWOWORDINLINE(0x701B, 0xABC2);
  908.  
  909. extern pascal void RectMatrix(MatrixRecord *matrix, const Rect *srcRect, const Rect *dstRect)
  910.  TWOWORDINLINE(0x701E, 0xABC2);
  911.  
  912. extern pascal void MapMatrix(MatrixRecord *matrix, const Rect *fromRect, const Rect *toRect)
  913.  TWOWORDINLINE(0x701D, 0xABC2);
  914.  
  915. extern pascal void CompAdd(wide *src, wide *dst)
  916.  TWOWORDINLINE(0x7001, 0xABC2);
  917.  
  918. extern pascal void CompSub(wide *src, wide *dst)
  919.  TWOWORDINLINE(0x7002, 0xABC2);
  920.  
  921. extern pascal void CompNeg(wide *dst)
  922.  TWOWORDINLINE(0x7003, 0xABC2);
  923.  
  924. extern pascal void CompShift(wide *src, short shift)
  925.  TWOWORDINLINE(0x7004, 0xABC2);
  926.  
  927. extern pascal void CompMul(long src1, long src2, wide *dst)
  928.  TWOWORDINLINE(0x7005, 0xABC2);
  929.  
  930. extern pascal long CompDiv(wide *numerator, long denominator, long *remainder)
  931.  TWOWORDINLINE(0x7006, 0xABC2);
  932.  
  933. extern pascal void CompFixMul(wide *compSrc, Fixed fixSrc, wide *compDst)
  934.  TWOWORDINLINE(0x7007, 0xABC2);
  935.  
  936. extern pascal void CompMulDiv(wide *co, long mul, long divisor)
  937.  TWOWORDINLINE(0x7008, 0xABC2);
  938.  
  939. extern pascal void CompMulDivTrunc(wide *co, long mul, long divisor, long *remainder)
  940.  TWOWORDINLINE(0x700C, 0xABC2);
  941.  
  942. extern pascal long CompCompare(wide *a, wide *minusb)
  943.  TWOWORDINLINE(0x7009, 0xABC2);
  944.  
  945. extern pascal Fixed FixMulDiv(Fixed src, Fixed mul, Fixed divisor)
  946.  TWOWORDINLINE(0x700A, 0xABC2);
  947.  
  948. extern pascal Fixed UnsignedFixMulDiv(Fixed src, Fixed mul, Fixed divisor)
  949.  TWOWORDINLINE(0x700D, 0xABC2);
  950.  
  951. extern pascal Fract FracSinCos(Fixed degree, Fract *cosOut)
  952.  TWOWORDINLINE(0x700B, 0xABC2);
  953.  
  954. extern pascal Fixed FixExp2(Fixed src)
  955.  TWOWORDINLINE(0x700E, 0xABC2);
  956.  
  957. extern pascal Fixed FixLog2(Fixed src)
  958.  TWOWORDINLINE(0x700F, 0xABC2);
  959.  
  960. extern pascal Fixed FixPow(Fixed base, Fixed exp)
  961.  TWOWORDINLINE(0x7010, 0xABC2);
  962.  
  963. typedef ComponentInstance GraphicsImportComponent;
  964.  
  965. enum {
  966.     GraphicsImporterComponentType = 'grip'
  967. };
  968.  
  969. /** These are GraphicsImport procedures **/
  970. extern pascal ComponentResult GraphicsImportSetDataReference(GraphicsImportComponent ci, Handle dataRef, OSType dataReType)
  971.  FIVEWORDINLINE(0x2F3C, 0x0008, 0x0001, 0x7000, 0xA82A);
  972.  
  973. extern pascal ComponentResult GraphicsImportGetDataReference(GraphicsImportComponent ci, Handle *dataRef, OSType *dataReType)
  974.  FIVEWORDINLINE(0x2F3C, 0x0008, 0x0002, 0x7000, 0xA82A);
  975.  
  976. extern pascal ComponentResult GraphicsImportSetDataFile(GraphicsImportComponent ci, const FSSpec *theFile)
  977.  FIVEWORDINLINE(0x2F3C, 0x0004, 0x0003, 0x7000, 0xA82A);
  978.  
  979. extern pascal ComponentResult GraphicsImportGetDataFile(GraphicsImportComponent ci, FSSpec *theFile)
  980.  FIVEWORDINLINE(0x2F3C, 0x0004, 0x0004, 0x7000, 0xA82A);
  981.  
  982. extern pascal ComponentResult GraphicsImportSetDataHandle(GraphicsImportComponent ci, Handle h)
  983.  FIVEWORDINLINE(0x2F3C, 0x0004, 0x0005, 0x7000, 0xA82A);
  984.  
  985. extern pascal ComponentResult GraphicsImportGetDataHandle(GraphicsImportComponent ci, Handle *h)
  986.  FIVEWORDINLINE(0x2F3C, 0x0004, 0x0006, 0x7000, 0xA82A);
  987.  
  988. extern pascal ComponentResult GraphicsImportGetImageDescription(GraphicsImportComponent ci, ImageDescriptionHandle *desc)
  989.  FIVEWORDINLINE(0x2F3C, 0x0004, 0x0007, 0x7000, 0xA82A);
  990.  
  991. extern pascal ComponentResult GraphicsImportGetDataOffsetAndSize(GraphicsImportComponent ci, unsigned long *offset, unsigned long *size)
  992.  FIVEWORDINLINE(0x2F3C, 0x0008, 0x0008, 0x7000, 0xA82A);
  993.  
  994. extern pascal ComponentResult GraphicsImportReadData(GraphicsImportComponent ci, void *dataPtr, unsigned long dataOffset, unsigned long dataSize)
  995.  FIVEWORDINLINE(0x2F3C, 0x000C, 0x0009, 0x7000, 0xA82A);
  996.  
  997. extern pascal ComponentResult GraphicsImportSetClip(GraphicsImportComponent ci, RgnHandle clipRgn)
  998.  FIVEWORDINLINE(0x2F3C, 0x0004, 0x000A, 0x7000, 0xA82A);
  999.  
  1000. extern pascal ComponentResult GraphicsImportGetClip(GraphicsImportComponent ci, RgnHandle *clipRgn)
  1001.  FIVEWORDINLINE(0x2F3C, 0x0004, 0x000B, 0x7000, 0xA82A);
  1002.  
  1003. extern pascal ComponentResult GraphicsImportSetSourceRect(GraphicsImportComponent ci, const Rect *sourceRect)
  1004.  FIVEWORDINLINE(0x2F3C, 0x0004, 0x000C, 0x7000, 0xA82A);
  1005.  
  1006. extern pascal ComponentResult GraphicsImportGetSourceRect(GraphicsImportComponent ci, Rect *sourceRect)
  1007.  FIVEWORDINLINE(0x2F3C, 0x0004, 0x000D, 0x7000, 0xA82A);
  1008.  
  1009. extern pascal ComponentResult GraphicsImportGetNaturalBounds(GraphicsImportComponent ci, Rect *naturalBounds)
  1010.  FIVEWORDINLINE(0x2F3C, 0x0004, 0x000E, 0x7000, 0xA82A);
  1011.  
  1012. extern pascal ComponentResult GraphicsImportDraw(GraphicsImportComponent ci)
  1013.  FIVEWORDINLINE(0x2F3C, 0x0000, 0x000F, 0x7000, 0xA82A);
  1014.  
  1015. extern pascal ComponentResult GraphicsImportSetGWorld(GraphicsImportComponent ci, CGrafPtr port, GDHandle gd)
  1016.  FIVEWORDINLINE(0x2F3C, 0x0008, 0x0010, 0x7000, 0xA82A);
  1017.  
  1018. extern pascal ComponentResult GraphicsImportGetGWorld(GraphicsImportComponent ci, CGrafPtr *port, GDHandle *gd)
  1019.  FIVEWORDINLINE(0x2F3C, 0x0008, 0x0011, 0x7000, 0xA82A);
  1020.  
  1021. extern pascal ComponentResult GraphicsImportSetMatrix(GraphicsImportComponent ci, const MatrixRecord *matrix)
  1022.  FIVEWORDINLINE(0x2F3C, 0x0004, 0x0012, 0x7000, 0xA82A);
  1023.  
  1024. extern pascal ComponentResult GraphicsImportGetMatrix(GraphicsImportComponent ci, MatrixRecord *matrix)
  1025.  FIVEWORDINLINE(0x2F3C, 0x0004, 0x0013, 0x7000, 0xA82A);
  1026.  
  1027. extern pascal ComponentResult GraphicsImportSetBoundsRect(GraphicsImportComponent ci, const Rect *bounds)
  1028.  FIVEWORDINLINE(0x2F3C, 0x0004, 0x0014, 0x7000, 0xA82A);
  1029.  
  1030. extern pascal ComponentResult GraphicsImportGetBoundsRect(GraphicsImportComponent ci, Rect *bounds)
  1031.  FIVEWORDINLINE(0x2F3C, 0x0004, 0x0015, 0x7000, 0xA82A);
  1032.  
  1033. extern pascal ComponentResult GraphicsImportSaveAsPicture(GraphicsImportComponent ci, const FSSpec *fss, ScriptCode scriptTag)
  1034.  FIVEWORDINLINE(0x2F3C, 0x0006, 0x0016, 0x7000, 0xA82A);
  1035.  
  1036. extern pascal ComponentResult GraphicsImportSetGraphicsMode(GraphicsImportComponent ci, long graphicsMode, const RGBColor *opColor)
  1037.  FIVEWORDINLINE(0x2F3C, 0x0008, 0x0017, 0x7000, 0xA82A);
  1038.  
  1039. extern pascal ComponentResult GraphicsImportGetGraphicsMode(GraphicsImportComponent ci, long *graphicsMode, RGBColor *opColor)
  1040.  FIVEWORDINLINE(0x2F3C, 0x0008, 0x0018, 0x7000, 0xA82A);
  1041.  
  1042. extern pascal ComponentResult GraphicsImportSetQuality(GraphicsImportComponent ci, CodecQ quality)
  1043.  FIVEWORDINLINE(0x2F3C, 0x0004, 0x0019, 0x7000, 0xA82A);
  1044.  
  1045. extern pascal ComponentResult GraphicsImportGetQuality(GraphicsImportComponent ci, CodecQ *quality)
  1046.  FIVEWORDINLINE(0x2F3C, 0x0004, 0x001A, 0x7000, 0xA82A);
  1047.  
  1048. extern pascal ComponentResult GraphicsImportSaveAsQuickTimeImageFile(GraphicsImportComponent ci, const FSSpec *fss, ScriptCode scriptTag)
  1049.  FIVEWORDINLINE(0x2F3C, 0x0006, 0x001B, 0x7000, 0xA82A);
  1050.  
  1051. extern pascal ComponentResult GraphicsImportSetDataReferenceOffsetAndLimit(GraphicsImportComponent ci, unsigned long offset, unsigned long limit)
  1052.  FIVEWORDINLINE(0x2F3C, 0x0008, 0x001C, 0x7000, 0xA82A);
  1053.  
  1054. extern pascal ComponentResult GraphicsImportGetDataReferenceOffsetAndLimit(GraphicsImportComponent ci, unsigned long *offset, unsigned long *limit)
  1055.  FIVEWORDINLINE(0x2F3C, 0x0008, 0x001D, 0x7000, 0xA82A);
  1056.  
  1057. typedef ComponentInstance ImageTranscoderComponent;
  1058.  
  1059. enum {
  1060.     ImageTranscodererComponentType = 'imtc'
  1061. };
  1062.  
  1063. /** These are ImageTranscoder procedures **/
  1064. extern pascal ComponentResult ImageTranscoderBeginSequence(ImageTranscoderComponent itc, ImageDescriptionHandle srcDesc, ImageDescriptionHandle *dstDesc, void *data, long dataSize)
  1065.  FIVEWORDINLINE(0x2F3C, 0x0010, 0x0001, 0x7000, 0xA82A);
  1066.  
  1067. extern pascal ComponentResult ImageTranscoderConvert(ImageTranscoderComponent itc, void *srcData, long srcDataSize, void **dstData, long *dstDataSize)
  1068.  FIVEWORDINLINE(0x2F3C, 0x0010, 0x0002, 0x7000, 0xA82A);
  1069.  
  1070. extern pascal ComponentResult ImageTranscoderDisposeData(ImageTranscoderComponent itc, void *dstData)
  1071.  FIVEWORDINLINE(0x2F3C, 0x0004, 0x0003, 0x7000, 0xA82A);
  1072.  
  1073. extern pascal ComponentResult ImageTranscoderEndSequence(ImageTranscoderComponent itc)
  1074.  FIVEWORDINLINE(0x2F3C, 0x0000, 0x0004, 0x7000, 0xA82A);
  1075.  
  1076. /* UPP call backs */
  1077.  
  1078. /* selectors for component calls */
  1079. enum {
  1080.     kGraphicsImportSetDataReferenceSelect            = 0x0001,
  1081.     kGraphicsImportGetDataReferenceSelect            = 0x0002,
  1082.     kGraphicsImportSetDataFileSelect                = 0x0003,
  1083.     kGraphicsImportGetDataFileSelect                = 0x0004,
  1084.     kGraphicsImportSetDataHandleSelect                = 0x0005,
  1085.     kGraphicsImportGetDataHandleSelect                = 0x0006,
  1086.     kGraphicsImportGetImageDescriptionSelect        = 0x0007,
  1087.     kGraphicsImportGetDataOffsetAndSizeSelect        = 0x0008,
  1088.     kGraphicsImportReadDataSelect                    = 0x0009,
  1089.     kGraphicsImportSetClipSelect                    = 0x000A,
  1090.     kGraphicsImportGetClipSelect                    = 0x000B,
  1091.     kGraphicsImportSetSourceRectSelect                = 0x000C,
  1092.     kGraphicsImportGetSourceRectSelect                = 0x000D,
  1093.     kGraphicsImportGetNaturalBoundsSelect            = 0x000E,
  1094.     kGraphicsImportDrawSelect                        = 0x000F,
  1095.     kGraphicsImportSetGWorldSelect                    = 0x0010,
  1096.     kGraphicsImportGetGWorldSelect                    = 0x0011,
  1097.     kGraphicsImportSetMatrixSelect                    = 0x0012,
  1098.     kGraphicsImportGetMatrixSelect                    = 0x0013,
  1099.     kGraphicsImportSetBoundsRectSelect                = 0x0014,
  1100.     kGraphicsImportGetBoundsRectSelect                = 0x0015,
  1101.     kGraphicsImportSaveAsPictureSelect                = 0x0016,
  1102.     kGraphicsImportSetGraphicsModeSelect            = 0x0017,
  1103.     kGraphicsImportGetGraphicsModeSelect            = 0x0018,
  1104.     kGraphicsImportSetQualitySelect                    = 0x0019,
  1105.     kGraphicsImportGetQualitySelect                    = 0x001A,
  1106.     kGraphicsImportSaveAsQuickTimeImageFileSelect    = 0x001B,
  1107.     kGraphicsImportSetDataReferenceOffsetAndLimitSelect = 0x001C,
  1108.     kGraphicsImportGetDataReferenceOffsetAndLimitSelect = 0x001D,
  1109.     kImageTranscoderBeginSequenceSelect                = 0x0001,
  1110.     kImageTranscoderConvertSelect                    = 0x0002,
  1111.     kImageTranscoderDisposeDataSelect                = 0x0003,
  1112.     kImageTranscoderEndSequenceSelect                = 0x0004
  1113. };
  1114.  
  1115. #if PRAGMA_ALIGN_SUPPORTED
  1116. #pragma options align=reset
  1117. #endif
  1118.  
  1119. #if PRAGMA_IMPORT_SUPPORTED
  1120. #pragma import off
  1121. #endif
  1122.  
  1123. #ifdef __cplusplus
  1124. }
  1125. #endif
  1126.  
  1127. #endif /* __IMAGECOMPRESSION__ */
  1128.  
  1129.